﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<link rel="Bookmark" href="imgs/favicon.ico"/>
	<link rel="Shortcut Icon" href="imgs/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css"/>
	<title>商城</title>
	<style type="text/css">
		table { margin: 10px 0; }
	</style>
</head>
<body>
<!--顶部-->
<header class="navbar-wrapper"></header>
<!--左侧菜单-->
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2" id="leftMenu"></div>
</aside>

<!--首页-->
<section class="Hui-article-box">
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>
		<a href="../admin/index.html" class="maincolor">首页</a>
		<span class="c-gray en">&gt;</span> 财务报表
	</nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<table class="table table-border table-bordered table-bg">
				<thead>
				<tr>
					<th colspan="7" scope="col">零售财务报表</th>
				</tr>
				<tr class="text-c">
					<th>零售商城销售总额</th>
					<th>商城订单</th>
					<th>待消耗余额总计
						<select onchange="toList01(this.value);"
								style="padding: 5px; border: 1px solid #eee;">
							<option value="1">昨日</option>
							<option value="2">今日</option>
							<option value="3">三天前</option>
							<option value="4">七天前</option>
							<option value="5">一个月前</option>
							<option value="6">三个月前</option>
							<option value="7">半年前</option>
						</select>
						<input type="hidden" id="riqi1" value="1"/>
					</th>
					<th>会员充值</th>
					<th>礼品卡订单</th>
					<th>订单退款</th>
					<th>分销提现</th>
				</tr>
				</thead>
				<tbody id="kanban01">
				</tbody>
			</table>
			<table class="table table-border table-bordered table-bg">
				<thead>
					<tr>
						<th colspan="7" scope="col">零售财务报表-零售商城收入总额-收入总额</th>
					</tr>
					<tr class="text-c">
						<th>收入总额</th>
						<th>商城订单</th>
						<th>会员充值</th>
						<th>礼品卡订单</th>
					</tr>
				</thead>
				<tbody id="kanban02">
				</tbody>
			</table>
			<table class="table table-border table-bordered table-bg">
				<thead>
					<tr>
						<th colspan="7" scope="col">零售财务报表-零售商城收入总额-支出总额</th>
					</tr>
					<tr class="text-c">
						<th>支出总额</th>
						<th>分销提现</th>
						<th>订单退款</th>
					</tr>
				</thead>
				<tbody id="kanban03">
				</tbody>
			</table>
			<table class="table table-border table-bordered table-bg">
				<thead>
				<tr>
					<th colspan="7" scope="col">渠道财务报表</th>
				</tr>
				<tr class="text-c">
					<th>渠道商城销售总额</th>
					<th>待消耗货款总额
						<select onchange="toList02(this.value);"
								style="padding: 5px; border: 1px solid #eee;">
							<option value="1">昨日</option>
							<option value="2">今日</option>
							<option value="3">三天前</option>
							<option value="4">七天前</option>
							<option value="5">一个月前</option>
							<option value="6">三个月前</option>
							<option value="7">半年前</option>
						</select>
						<input type="hidden" id="riqi2" value="1"/>
					</th>
					<th>货款充值</th>
					<th>订单退款</th>
					<th>分销提现</th>
				</tr>
				</thead>
				<tbody id="kanban04">
				</tbody>
			</table>
			<table class="table table-border table-bordered table-bg">
				<thead>
				<tr>
					<th colspan="7" scope="col">渠道财务报表-渠道商城收入总额</th>
				</tr>
				<tr class="text-c">
					<th>收入总额</th>
					<th>商城订单</th>
					<th>充值额</th>
				</tr>
				</thead>
				<tbody id="kanban05">
				</tbody>
			</table>
			<table class="table table-border table-bordered table-bg">
				<thead>
				<tr>
					<th colspan="7" scope="col">渠道财务报表-渠道商城支出总额</th>
				</tr>
				<tr class="text-c">
					<th>支出总额</th>
					<th>渠道分销提现</th>
					<th>订单退款</th>
				</tr>
				</thead>
				<tbody id="kanban06">
				</tbody>
			</table>
		</article>
	</div>
</section>
</body>
</html>


<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
	var fd = {
		//零售财务报表
		lingshou: {
			sell: 0, //所有订单金额总计
			order: 0, //非余额下单的实付金额总计
			yue: 0, //所有用户的钱包余额总计
			recharge: 0, //会员充值金额总计
			card: 0, //礼品卡金额总计
			refund: 0, //退款订单的金额总计
			tixian: 0, //分销提现的金额总计
		},
		//零售财务报表-零售商城收入总额
		lsin: {
			sell: 0, //收入总额
			shop: 0, //商城订单
			recharge: 0, //会员充值
			card: 0, //礼品卡订单
		},
		//零售财务报表-零售商城支出总额
		lsout: {
			sell: 0, //支出总额
			tixian: 0, //分销提现
			refund: 0, //退款
		},
		//渠道财务报表
		qudao: {
			sell: 0, //渠道商城所有订单
			yue: 0, //所有渠道商货款余额总计
			recharge: 0, //充值的货款金额总计
			refund: 0, //退款订单的金额总计
			tixian: 0, //分销提现的金额总计
		},
		//渠道财务报表-渠道商城收入总额
		qdIn: {
			total: 0, //收入总额
			shop: 0, //商城实付订单
			recharge: 0, //充值实付额
		},
		//渠道财务报表-渠道商城支出总额
		qdOut: {
			total: 0, //支出总额
			tixian: 0, //渠道分销提现
			refund: 0, //订单退款
		},
	};
	var rq01 = getParamByUrl('rq01');
	var rq02 = getParamByUrl('rq02');
	(function () {
		caiwuHtml();
		caiwuTongji();
	})();
	function toList01(v){
		$('#riqi1')[0].value = v;
//		caiwuTongji();
		var rq = $('#riqi2').val();
		window.location.href = '/admin/caiwu.html?rq01=' + v + '&rq02=' + rq;
	}
	function toList02(v){
		$('#riqi2')[0].value = v;
		var rq = $('#riqi1').val();
//		caiwuTongji();
		window.location.href = '/admin/caiwu.html?rq01=' + rq + '&rq02=' + v;
	}
</script>